import { defineStore } from "pinia";
import { ref } from "vue";

export const titleNavStore = defineStore('titleNav', () => {
  const showTitleNav = ref(false);

  function titleNavToggle() {
    if (showTitleNav.value) {
        showTitleNav.value = false;
    } else {
        showTitleNav.value = true;
    }
  }

  return {
    showTitleNav,
    titleNavToggle
  };
});

